-
Notifications
You must be signed in to change notification settings - Fork 2.3k
fix: emit console.log on fuzz test last run at verbosity >= 2 #12478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: emit console.log on fuzz test last run at verbosity >= 2 #12478
Conversation
onbjerg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ideally the logs for the last run are present in logs. currently they are not, which is what the bug is about. is there any reason we can't do that you came across?
|
My bad, its actually better to do as you described. Last run logs are now always stored in Removed |
|
@onbjerg pinging |
|
I guess that's fine but it pollutes the output when bound is used https://github.com/foundry-rs/forge-std/blob/755e679abefaf6ca9a08b5b9b90a52fb9b4ee188/src/StdUtils.sol#L60 e.g. https://github.com/foundry-rs/foundry/actions/runs/19795110493/job/56714245384?pr=12698#step:14:3515 |
- use reth node in config tests instead eth.llamarpc - remove log from bound fn to address foundry-rs/foundry#12478 (comment) Projects should `console.log` bounded value in tests themselves if needed
Fixes #11039
Always collect logs from the last fuzz run and include them in results when
show_logs: false, enabling display at verbosity >= 2. Preserves existing behavior whenshow_logs: true.